namespace Aesha.WoW.Broker.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class v3 : DbMigration
    {
        public override void Up()
        {
            CreateTable(
                "dbo.AuctionListings",
                c => new
                    {
                        AuctionId = c.Long(nullable: false, identity: true),
                        ItemId = c.Int(nullable: false),
                        Owner = c.String(),
                        Bid = c.Long(nullable: false),
                        BuyOut = c.Long(nullable: false),
                        Quantity = c.Int(nullable: false),
                        TimeLeft = c.String(),
                        FirstSeen = c.DateTime(nullable: false),
                        LastUpdated = c.DateTime(nullable: false),
                        Sold = c.Boolean(nullable: false),
                    })
                .PrimaryKey(t => t.AuctionId);
            
        }
        
        public override void Down()
        {
            DropTable("dbo.AuctionListings");
        }
    }
}
